package com.jinbiao.annotion3;

import java.lang.reflect.Field;

/**
 * 获取注解的帮助类
 * @author EX_WLJR_ZHUANGJB
 *
 */
public class FiledMetaUtil {

	private FiledMeta meta;
    private Field field;
    private String name;
    private Class<?> type;
	public FiledMeta getMeta() {
		return meta;
	}
	public void setMeta(FiledMeta meta) {
		this.meta = meta;
	}
	public Field getField() {
		return field;
	}
	public void setField(Field field) {
		this.field = field;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Class<?> getType() {
		return type;
	}
	public void setType(Class<?> type) {
		this.type = type;
	}
    
	public FiledMetaUtil(){}
    
    public FiledMetaUtil(FiledMeta meta, Field field) {
        super();
        this.meta = meta;
        this.field = field;
        this.name=field.getName();
        this.type=field.getType();
    }
     
     
    public FiledMetaUtil(FiledMeta meta, String name, Class<?> type) {
        super();
        this.meta = meta;
        this.name = name;
        this.type = type;
    }
}
